package day03;

import org.omg.CORBA.INTERNAL;

public class OperDemo {
    public static void main(String[] args) {

        int num=5;
        int flag=num>0?1:-1;
        System.out.println(flag);

        int a=8,b=5;
        int max =a>b?a:b;
        System.out.println("max="+max);





        /*
        int age=35;
        System.out.println("age=");//age=
        System.out.println(age);//35
        System.out.println("age"+age);//age=18
        System.out.println("我今年"+age+"岁了");


        String name="zhk";
        System.out.println("大家好,我叫"+name+"今年"+age+"岁了");


        System.out.println(30+10+""+10);//4010
        System.out.println(""+10+20+30);//102030
        System.out.println(10+20+30+"");//60

*/



        /*
        int a= 5;
        a+=10;
        System.out.println(a);
        a *= 2;
        System.out.println(a);//30
        a /=6;
        System.out.println(a);//5

        //面试题
        short s =5;
        //s =s+10;//编译错误,因为需强转,改为s=(shuer)(s+10);
        s += 10;//已经是s=(shuer)(s+10)
*/






     /*
        int a=5,b=10,c=5;
        /*
        boolean b4 =a<b ||  c++>2;
        System.out.println(b4);
        System.out.println(c);
        */
        /*
        boolean b3 =a<b &&  c++>2;
        System.out.println(b3);
        System.out.println(c);
*/










        /*
        boolean b2 =!(a<b);
        System.out.println(b2);
        System.out.println(a<b);
        */

        /*
        System.out.println(b>=a ||b<a);
        System.out.println(b<=c ||b>a );
        System.out.println(b!=c ||a<b);
        System.out.println(a==b ||b<c);
        int score=90;
        System.out.println(score<0 ||score>100);
*/
        /*
        boolean b1=b>=a && b<c;
        System.out.println(b1);
        System.out.println(b<=c && b>a);
        System.out.println(a==b && c>b);
        System.out.println(b!=c && a<b);


        int age=36;
        System.out.println(age>=18 && age<=50 );
        int score = 86;
        System.out.println(score>=18 && score<=100);

*/


      /*  int a=5,b=10,c=5;
        boolean b1=a>b;
        System.out.println(a<b);
        System.out.println(c<b);
        System.out.println(a>=c);
        System.out.println(a<=b);
        System.out.println(a==b);
        System.out.println(a!=c);

        System.out.println(a%2==0);
        System.out.println(a+c>b);
        System.out.println(a++>5);
        System.out.println(a++>5);
        System.out.println(a);

*/






















            /*
            int a=5,b=5;
            a++;
            ++b;
            System.out.println(a);
            System.out.println(b);
            */
            /*
             int a=5, b=5;
             int c=a++;
             int d=++b;
             System.out.println(a);
             System.out.println(b);
             System.out.println(c);
             System.out.println(d);
    /*

             */
       /*         int a=5,b=5;
                a--;
                --b;
             System.out.println(a);
             System.out.println(b);



*/
        /*int a=5,b=5;
            int c=a--;
            int d=--b;
            System.out.println(a);
            System.out.println(b);
            System.out.println(c);
            System.out.println(d);


*/




    }



}
